<!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
	<body>
	<script>
		var i=1;
		for(;i<=100;i++)
		{
      for(var a=2;a<=i;a++)
		  {
			  
		 
		   if(i%a==0&&i!=a)
		      {
				  break;
			  }
		   else if(i==a)
			  {
				  document.write(i+"<div>");
			  }
		  } 
		}
	</script>	
	</body>
</html>